/**
 * Copyright (C), Ric Teng
 * FileName: DomeController
 * Author:   ric
 * Date:     2018/10/23 17:55
 * Description: ssm环境搭建测试
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.ric.web;

import com.ric.service.DomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

/**
 * 〈一句话功能简述〉<br>
 * 〈ssm环境搭建测试〉
 *
 * @author ric
 * @create 2018/10/23
 * @since 1.0.0
 */
@Controller
public class DomeController {
    @Autowired
    private DomeService domeService;


    @RequestMapping(value = "/index.html")
    public ModelAndView index() {
        List list = domeService.index();
        ModelAndView mav = new ModelAndView();
        mav.setViewName("index");
        mav.addObject("userList", list);
        return mav;
    }

}
